package org.example.news_check.Service;

import com.github.pagehelper.PageInfo;
import org.example.news_check.Pojo.Comment;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CommentService {
    Comment add(Comment comment);

    List<Comment> findByNewsId(Integer id);

    void delete(Integer id);

    List<Comment> findAll(Integer newsId);

//    PageInfo<Comment> findPage(Comment search, Integer pageNum, Integer pageSize);


}
